<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
</head>
<body>
<div id="app">
    <h1>插值语法：</h1>
    {{name}}-{{school.name}}

    <hr>
    <h1>指令语法：</h1>
    <a v-bind:href="school.url">点我去，{{school.name}}学习</a>
    <a :href="school.url">点我去，{{school.name}}学习</a>


</div>

</body>
</html>
<script>
new Vue({
    el:'#app',
    data:{
        //数据理解为对象 各个数据相当于属性
        name:'zs',
        school:{
            name:'昆一中',
            addredd:'昆明',
            url:'http://www.kyz.com'
        }
    }
});
</script>